﻿using System.Collections.Generic;
using System.Linq;
using Acaweb.Common;
using System.ServiceModel.Activation;
using Acaweb.Model.Entities;
using Acaweb.Servicios.Contracts;
using Components = Acaweb.Componentes.Contracts;

namespace Acaweb.Servicios.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class CompetenciasPracticantesService : ICompetenciasPracticantesService
    {
        Components.ICompetenciasPracticantesService _CompetenciasPracticantesComponent = AppCtx.Resolve<Components.ICompetenciasPracticantesService>();

        public void Insert(CompetenciasPracticantes CompetenciaPracticante)
        {
            _CompetenciasPracticantesComponent.Insert(CompetenciaPracticante);
        }

        public List<CompetenciasPracticantes> GetByPracticante(int IdPracticante)
        {
            return _CompetenciasPracticantesComponent.GetByPracticante(IdPracticante).ToList();
        }
    }
}